
window.onload = function() {
    clockStart();
}

function clockStart() {
    var today = new Date()
    var h = today.getHours()
    var m = today.getMinutes()
    var s = today.getSeconds()
    document.getElementById("txt_clock").innerHTML = h + ":" + m + ":" + s
    t = setTimeout("clockStart()", 500)
}

var counter = 0
function timerStart() {
    document.getElementById("timer_txt").value = counter++;
    setTimeout("timerStart()", 1000);
}
